/**
 * All right reserved@Raygo 2022~2030
 */

package com.raygo.runner.core.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * 步骤组流程
 *
 * @author Raygo
 * @since 2022年5月22日
 */
public class Flow {
    /**
     * 流程名称
     */
    private String name;

    /**
     * 步骤组列表
     */
    private final List<Group> groupList = new ArrayList<>();

    /**
     * 添加步骤组
     *
     * @param group 组
     */
    public void addGroup(Group group) {
        groupList.add(group);
    }

    /**
     * Get groupList value
     *
     * @return the groupList
     */
    public List<Group> getGroupList() {
        return groupList;
    }

    /**
     * Get flowName value
     *
     * @return the flowName
     */
    public String getName() {
        return name;
    }

    /**
     * Set flowName to flowName
     *
     * @param flowName the flowName to set
     */
    public void setName(String flowName) {
        this.name = flowName;
    }
}
